	<div>	
		<?php 
			if(count($adverts > 0)){
				if($advert->isOffer()){
		?>
		<h2>Demandes</h2>
		<?php
				}else{
		?>
		<h2>Offres</h2>
		<?php
				}
		?>
		<?php
				for($i = 0; $i < count($adverts); $i++){
		?>
			<div class="cadre_resultat">
				<span class="resultat_gauche">Num&eacute;ro d'annonce</span><?php echo $adverts[$i]->getIdAdvert();?><br />
				<span class="resultat_gauche">Utilisateur</span><?php echo $adverts[$i]->getIdUser();?><br />
			</div>
		<?php
				}
		?>
		<?php
			}
			if(!$advert->isOffer() && count($requests) > 0){
		?>
			<h2>Demandes</h2>
		<?php
				for($i = 0; $i < count($requests); $i++){
		?>
			<div class="cadre_resultat">
				<div>Num&eacute;ro d'annonce</div><div><?php echo $requests[$i]->getIdAdvert();?></div>
				<div>Utilisateur</div><div><?php echo $requests[$i]->getIdUser();?></div>
			</div>
		<?php
				}
			}
			if(($advert->isOffer() && count($adverts) == 0) || (!$advert->isOffer() && count($adverts) == 0 && count($requests) == 0)){
		?>
			<p>Aucune correspondance trouv&eacute;e</p>
		<?php
			}
		?>
	</div>